package com.sgb.kjwl.model.entity;

import android.text.TextUtils;

/**
 * 参与投标列表
 */
public class BidListEntity {

    /**
     * no : 201909205117144
     * quotationTime : 2019-09-20
     * quotationStatus : 2
     * name : 这是劳务招标
     * id : 450
     * purchaseName : 这里显示的是企业认证时的名称
     * quotation : 448333.05
     */

    private String no;
    private String quotationTime;
    private String quotationStatus;//投标状态（1未报价 2已报价 3已中标 4未中标  5入围下轮 6放弃投标
    private String quotationRound;
    private String qualifications;
    private String name;
    private String id;
    private String purchaseName;
    private String quotation;

    public String getQuotationRound() {
        quotationRound = TextUtils.isEmpty(quotationRound) ? "" : quotationRound;
        switch (quotationRound) {
            case "1":
                quotationRound = "首轮报价";
                break;
            case "2":
                quotationRound = "二轮报价";
                break;
            case "3":
                quotationRound = "三轮报价";
                break;
        }
        return quotationRound;
    }

    public void setQuotationRound(String quotationRound) {
        this.quotationRound = quotationRound;
    }

    public String getQualifications() {
        qualifications = TextUtils.isEmpty(qualifications) ? "0" : qualifications;

        if (qualifications.equals("0")) {
            qualifications = "未上传";
        } else {
            qualifications = "已上传";
        }
        return qualifications;
    }

    public void setQualifications(String qualifications) {
        this.qualifications = qualifications;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getQuotationTime() {
        return quotationTime;
    }

    public void setQuotationTime(String quotationTime) {
        this.quotationTime = quotationTime;
    }

    public String getQuotationStatus() {
        quotationStatus = TextUtils.isEmpty(quotationStatus) ? "1" : quotationStatus;
        switch (quotationStatus) {
            case "1":
                quotationStatus = "未报价";
                break;
            case "2":
                quotationStatus = "已报价";
                break;
            case "3":
                quotationStatus = "已中标";
                break;
            case "4":
                quotationStatus = "未中标";
                break;
            case "5":
                quotationStatus = "入围下轮";
                break;
            case "6":
                quotationStatus = "放弃投标";
                break;
        }

        return quotationStatus;
    }

    public void setQuotationStatus(String quotationStatus) {
        this.quotationStatus = quotationStatus;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPurchaseName() {
        return purchaseName;
    }

    public void setPurchaseName(String purchaseName) {
        this.purchaseName = purchaseName;
    }

    public String getQuotation() {
        return quotation;
    }

    public void setQuotation(String quotation) {
        this.quotation = quotation;
    }
}
